# -*- coding:utf-8 -*-
from mako import runtime, filters, cache
UNDEFINED = runtime.UNDEFINED
STOP_RENDERING = runtime.STOP_RENDERING
__M_dict_builtin = dict
__M_locals_builtin = locals
_magic_number = 10
_modified_time = 1702374804.9960063
_enable_loop = True
_template_filename = 'D:/workspace/qg_demo/backend/mako_templates/base.mako'
_template_uri = '/base.mako'
_source_encoding = 'utf-8'
_exports = ['head', 'content', 'footerline', 'base_js']


from django.utils.translation import ugettext as _ 

def render_body(context,**pageargs):
    __M_caller = context.caller_stack._push_frame()
    try:
        __M_locals = __M_dict_builtin(pageargs=pageargs)
        def head():
            return render_head(context._locals(__M_locals))
        REMOTE_STATIC_URL = context.get('REMOTE_STATIC_URL', UNDEFINED)
        BK_URL = context.get('BK_URL', UNDEFINED)
        next = context.get('next', UNDEFINED)
        SITE_URL = context.get('SITE_URL', UNDEFINED)
        APP_PATH = context.get('APP_PATH', UNDEFINED)
        def content():
            return render_content(context._locals(__M_locals))
        request = context.get('request', UNDEFINED)
        APP_CODE = context.get('APP_CODE', UNDEFINED)
        DEBUG = context.get('DEBUG', UNDEFINED)
        NOW = context.get('NOW', UNDEFINED)
        def footerline():
            return render_footerline(context._locals(__M_locals))
        def base_js():
            return render_base_js(context._locals(__M_locals))
        STATIC_URL = context.get('STATIC_URL', UNDEFINED)
        STATIC_VERSION = context.get('STATIC_VERSION', UNDEFINED)
        __M_writer = context.writer()
        __M_writer('\n<!DOCTYPE html>\n<html>\n<head>\n    ')
        if 'parent' not in context._data or not hasattr(context._data['parent'], 'head'):
            context['self'].head(**pageargs)
        

        __M_writer('\n</head>\n\n<body>\n    <!--顶部导航 Start-->\n\t<nav class="navbar navbar-default king-horizontal-nav2" role="navigation" style="margin-bottom: 0; border-bottom: 0">\n\t    <div class="container" style="width: 100%;">\n\t        <div class="navbar-header col-md-6 col-sm-6 col-xs-6 logo">\n\t            <a class="navbar-brand" href="')
        __M_writer(filters.html_escape(SITE_URL))
        __M_writer('mako/" style="font-size:24px;padding-top: 15px;color: #438bca;">\n\t                ')
        __M_writer(filters.html_escape( _("蓝鲸开发框架(mako模板)")))
        __M_writer('\n\t            </a>\n\t        </div>\n\t        <div class="collapse navbar-collapse navbar-responsive-collapse col-md-6 col-sm-6 col-xs-6" id="king-example-navbar-collapse-2" style="float:right;">\n\t            <ul class="nav navbar-nav navbar-right">\n                  <span class="avatar" style="cursor: default;">\n                    <img src="')
        __M_writer(filters.html_escape(STATIC_URL))
        __M_writer('open/img/getheadimg.jpg" width="40" alt="Avatar" class="avatar-img">\n')
        if request.user.is_superuser:
            __M_writer('                        <i class="crown"></i>\n')
        __M_writer('                    <span>')
        __M_writer(filters.html_escape(request.user.username))
        __M_writer('</span>\n                  </span>\n                </ul>\n\t\t\t\t<ul class="nav navbar-nav" style="float:right;">\n\t\t\t\t\t')

        home = dev_guide = contact = ''
        relative_path = APP_PATH
        if relative_path == SITE_URL + "mako/":
                home = 'king-navbar-active'
        elif relative_path.startswith(SITE_URL + "mako/dev-guide/"):
                                        dev_guide = 'king-navbar-active'
        elif relative_path == SITE_URL + "mako/contact/":
                contact = 'king-navbar-active'
                                                
        
        __M_locals_builtin_stored = __M_locals_builtin()
        __M_locals.update(__M_dict_builtin([(__M_key, __M_locals_builtin_stored[__M_key]) for __M_key in ['dev_guide','contact','home','relative_path'] if __M_key in __M_locals_builtin_stored]))
        __M_writer('\n\t                <li class="')
        __M_writer(filters.html_escape(home))
        __M_writer('"><a href="')
        __M_writer(filters.html_escape(SITE_URL))
        __M_writer('mako/"><span>')
        __M_writer(filters.html_escape( _("首页")))
        __M_writer('</span></a></li>\n\t\t\t\t\t<li class="')
        __M_writer(filters.html_escape(dev_guide))
        __M_writer('"><a href="')
        __M_writer(filters.html_escape(SITE_URL))
        __M_writer('mako/dev-guide/"><span>')
        __M_writer(filters.html_escape( _("开发指引")))
        __M_writer('</span></a></li>\n                    <li class="')
        __M_writer(filters.html_escape(contact))
        __M_writer('"><a href="')
        __M_writer(filters.html_escape(SITE_URL))
        __M_writer('mako/contact/"><span>')
        __M_writer(filters.html_escape( _("联系我们")))
        __M_writer('</span></a></li>\n\t            </ul>\n\t        </div>\n\t    </div>\n\t</nav>\n\t<!--顶部导航 End-->\n\n    <!-- 固定宽度居中 start -->\n    ')
        if 'parent' not in context._data or not hasattr(context._data['parent'], 'content'):
            context['self'].content(**pageargs)
        

        __M_writer('\n    <!-- 固定宽度表单居中 end -->\n\t<!-- 尾部声明 start -->\n    <div class="foot" id="footer">\n        ')
        if 'parent' not in context._data or not hasattr(context._data['parent'], 'footerline'):
            context['self'].footerline(**pageargs)
        

        __M_writer('\n        <ul class="links ft">\n            <li>\n                <a id="contact_us" class="link">')
        __M_writer(filters.html_escape( _("QQ咨询(800802001)")))
        __M_writer('</a>\n                | <a href="http://bbs.bk.tencent.com/forum.php" target="_blank" hotrep="hp.footer.feedback" class="link">')
        __M_writer(filters.html_escape( _("蓝鲸论坛")))
        __M_writer('</a>\n                | <a href="http://bk.tencent.com/" target="_blank" hotrep="hp.footer.feedback" class="link">')
        __M_writer(filters.html_escape( _("蓝鲸官网")))
        __M_writer('</a>\n                | <a href="')
        __M_writer(filters.html_escape(BK_URL))
        __M_writer('" target="_blank" hotrep="hp.footer.feedback" class="link">')
        __M_writer(filters.html_escape( _("蓝鲸智云工作台")))
        __M_writer('</a>\n            </li>\n            <li><p class="copyright">Copyright © 2012-')
        __M_writer(filters.html_escape(NOW.year))
        __M_writer(' Tencent BlueKing. All Rights Reserved.</p> </li>\n          \t<li><p class="copyright">')
        __M_writer(filters.html_escape( _("蓝鲸智云 版权所有")))
        __M_writer('</p> </li>\n        </ul>\n      </div>\n      <!-- 尾部声明 start -->\n</body>\n\n')
        if 'parent' not in context._data or not hasattr(context._data['parent'], 'base_js'):
            context['self'].base_js(**pageargs)
        

        __M_writer('\n<!--\n    这里放置子页面中，不在block的内容，一般为js，注意子模版中的js如果使用到以上js库，必须放置在block外\n    只对直接子页面起效，若子页面被继承，且继承子页面的页面有不在block中的内容，则子页面也需添加 $ {next.body()}\n    $ {next.body()}的位置决定了子页面不在block的内容被渲染的位置\n    也可使用$ {self.body()}，但$ {self.body()}只渲染最终页面不在block中的内容，中间继承页面不在block的内容不做渲染\n -->\n')
        __M_writer(filters.html_escape(next.body()))
        __M_writer('\n</html>\n')
        return ''
    finally:
        context.caller_stack._pop_frame()


def render_head(context,**pageargs):
    __M_caller = context.caller_stack._push_frame()
    try:
        def head():
            return render_head(context)
        APP_CODE = context.get('APP_CODE', UNDEFINED)
        REMOTE_STATIC_URL = context.get('REMOTE_STATIC_URL', UNDEFINED)
        STATIC_URL = context.get('STATIC_URL', UNDEFINED)
        STATIC_VERSION = context.get('STATIC_VERSION', UNDEFINED)
        __M_writer = context.writer()
        __M_writer('\n    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>\n    <title>')
        __M_writer(filters.html_escape(APP_CODE))
        __M_writer('</title>\n    <meta name="description" content=""/>\n    <meta name="author" content=""/>\n\t<link rel="shortcut icon" href="')
        __M_writer(filters.html_escape(STATIC_URL))
        __M_writer('open/favicon.ico" type="image/x-icon">\n\t<!-- bootstrap css -->\n\t<link href="')
        __M_writer(filters.html_escape(REMOTE_STATIC_URL))
        __M_writer('v3/assets/bootstrap-3.3.4/css/bootstrap.min.css" rel="stylesheet">\n\t<!-- 禁止bootstrap 响应式 （app根据自身需求启用或禁止bootstrap响应式） -->\n\t<link href="')
        __M_writer(filters.html_escape(REMOTE_STATIC_URL))
        __M_writer('v3/assets/bootstrap-3.3.4/css/bootstrap_noresponsive.css" rel="stylesheet">\n    <!-- jquery ui css-->\n    <link href="')
        __M_writer(filters.html_escape(REMOTE_STATIC_URL))
        __M_writer('v3/assets/jquery-ui-1.11.0.custom/jquery-ui.min.css" rel="stylesheet">\n    <!-- 平台cs\t -->\n\t<link href="')
        __M_writer(filters.html_escape(REMOTE_STATIC_URL))
        __M_writer('v3/bk/css/bk.css" rel="stylesheet">\n\t<!--自定义css-->\n\t<link href="')
        __M_writer(filters.html_escape(STATIC_URL))
        __M_writer('open/css/bk.css?v=')
        __M_writer(filters.html_escape(STATIC_VERSION))
        __M_writer('" rel="stylesheet">\n\t<link rel="stylesheet" type="text/css" href="')
        __M_writer(filters.html_escape(STATIC_URL))
        __M_writer('open/css/index.css?v=')
        __M_writer(filters.html_escape(STATIC_VERSION))
        __M_writer('">\n    <style>\n    \t/*如果你需要给你的应用固定高度和宽度，请在这里修改*/\n\t\tbody {min-width:1202px;}\n\t\t.container{\n\t\t\twidth:auto;\n\t\t\tmin-width: 1200px;\n\t\t\tmax-width:1400px;\n\t\t}\n\t</style>\n\t')
        return ''
    finally:
        context.caller_stack._pop_frame()


def render_content(context,**pageargs):
    __M_caller = context.caller_stack._push_frame()
    try:
        def content():
            return render_content(context)
        __M_writer = context.writer()
        return ''
    finally:
        context.caller_stack._pop_frame()


def render_footerline(context,**pageargs):
    __M_caller = context.caller_stack._push_frame()
    try:
        def footerline():
            return render_footerline(context)
        __M_writer = context.writer()
        return ''
    finally:
        context.caller_stack._pop_frame()


def render_base_js(context,**pageargs):
    __M_caller = context.caller_stack._push_frame()
    try:
        def base_js():
            return render_base_js(context)
        APP_CODE = context.get('APP_CODE', UNDEFINED)
        DEBUG = context.get('DEBUG', UNDEFINED)
        REMOTE_STATIC_URL = context.get('REMOTE_STATIC_URL', UNDEFINED)
        SITE_URL = context.get('SITE_URL', UNDEFINED)
        STATIC_URL = context.get('STATIC_URL', UNDEFINED)
        STATIC_VERSION = context.get('STATIC_VERSION', UNDEFINED)
        __M_writer = context.writer()
        __M_writer('\n<!-- jquery js  -->\n<script src="')
        __M_writer(filters.html_escape(REMOTE_STATIC_URL))
        __M_writer('v3/assets/js/jquery-1.10.2.min.js"></script>\n<script src="')
        __M_writer(filters.html_escape(REMOTE_STATIC_URL))
        __M_writer('jquery/jquery.json-2.3.min.js"></script>\n<!-- 处理jquery兼容问题，jQuery Migrate（迁移）插件包含了1.6.4以来存在但1.9已不支持所有API -->\n<script src="')
        __M_writer(filters.html_escape(REMOTE_STATIC_URL))
        __M_writer('v3/assets/js/jquery-migrate-1.2.1.min.js"></script>\n<!-- bootstrap js  -->\n<script src="')
        __M_writer(filters.html_escape(REMOTE_STATIC_URL))
        __M_writer('v3/assets/bootstrap-3.3.4/js/bootstrap.min.js"></script>\n<!-- jquery ui js-->\n<script src="')
        __M_writer(filters.html_escape(REMOTE_STATIC_URL))
        __M_writer('v3/assets/jquery-ui-1.11.0.custom/jquery-ui.min.js"></script>\n<!-- 平台 js  -->\n<script src="')
        __M_writer(filters.html_escape(REMOTE_STATIC_URL))
        __M_writer('v3/bk/js/bk.js"></script>\n\n<!-- 这个是全局配置，如果需要在js中使用app_code和site_url,则这个javascript片段一定要保留 -->\n<script type="text/javascript">\n\tvar app_code = "')
        __M_writer(filters.html_escape(APP_CODE))
        __M_writer('";\t\t\t// 在蓝鲸系统里面注册的"应用编码"\n\tvar site_url = "')
        __M_writer(filters.html_escape(SITE_URL))
        __M_writer('";\t\t\t// app的url前缀,在ajax调用的时候，应该加上该前缀\n\tvar remote_static_url = "')
        __M_writer(filters.html_escape(REMOTE_STATIC_URL))
        __M_writer('";   //远程资源链接，403页面需要，不要删除\n    var debug_mode = JSON.parse("')
        __M_writer(filters.html_escape(DEBUG))
        __M_writer('");\n</script>\n<!--统计js  勿删-->\n<script src="')
        __M_writer(filters.html_escape(REMOTE_STATIC_URL))
        __M_writer('analysis.js?v=')
        __M_writer(filters.html_escape( STATIC_VERSION ))
        __M_writer('"></script>\n<script src="')
        __M_writer(filters.html_escape(STATIC_URL))
        __M_writer('account/login.js?v=')
        __M_writer(filters.html_escape( STATIC_VERSION ))
        __M_writer('"></script>\n<script src="')
        __M_writer(filters.html_escape(STATIC_URL))
        __M_writer('js/csrftoken.js?v=')
        __M_writer(filters.html_escape( STATIC_VERSION ))
        __M_writer('"></script>\n<script src="')
        __M_writer(filters.html_escape(STATIC_URL))
        __M_writer('js/settings.js?v=')
        __M_writer(filters.html_escape( STATIC_VERSION ))
        __M_writer('"></script>\n')
        return ''
    finally:
        context.caller_stack._pop_frame()


"""
__M_BEGIN_METADATA
{"filename": "D:/workspace/qg_demo/backend/mako_templates/base.mako", "uri": "/base.mako", "source_encoding": "utf-8", "line_map": {"16": 1, "17": 2, "18": 0, "42": 1, "47": 31, "48": 39, "49": 39, "50": 40, "51": 40, "52": 46, "53": 46, "54": 47, "55": 48, "56": 50, "57": 50, "58": 50, "59": 54, "60": 55, "61": 56, "62": 57, "63": 58, "64": 59, "65": 60, "66": 61, "67": 62, "68": 63, "69": 64, "72": 63, "73": 64, "74": 64, "75": 64, "76": 64, "77": 64, "78": 64, "79": 65, "80": 65, "81": 65, "82": 65, "83": 65, "84": 65, "85": 66, "86": 66, "87": 66, "88": 66, "89": 66, "90": 66, "95": 74, "100": 78, "101": 81, "102": 81, "103": 82, "104": 82, "105": 83, "106": 83, "107": 84, "108": 84, "109": 84, "110": 84, "111": 86, "112": 86, "113": 87, "114": 87, "119": 118, "120": 125, "121": 125, "127": 5, "137": 5, "138": 7, "139": 7, "140": 10, "141": 10, "142": 12, "143": 12, "144": 14, "145": 14, "146": 16, "147": 16, "148": 18, "149": 18, "150": 20, "151": 20, "152": 20, "153": 20, "154": 21, "155": 21, "156": 21, "157": 21, "163": 74, "174": 78, "185": 93, "197": 93, "198": 95, "199": 95, "200": 96, "201": 96, "202": 98, "203": 98, "204": 100, "205": 100, "206": 102, "207": 102, "208": 104, "209": 104, "210": 108, "211": 108, "212": 109, "213": 109, "214": 110, "215": 110, "216": 111, "217": 111, "218": 114, "219": 114, "220": 114, "221": 114, "222": 115, "223": 115, "224": 115, "225": 115, "226": 116, "227": 116, "228": 116, "229": 116, "230": 117, "231": 117, "232": 117, "233": 117, "239": 233}}
__M_END_METADATA
"""
